package com.dingyx.ps.feign.hystrix;

import com.dingyx.ps.feign.api.ThirdPartFeignService;
import com.dingyx.ps.model.ReturnT;
import com.dingyx.ps.model.thirdpart.VerifyCodePO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author dingyuxin
 *
 */
@Slf4j
@Component
public class ThirdPartServiceHystrix implements ThirdPartFeignService {
    @Override
    public ReturnT sendVerifyCode(VerifyCodePO verifyCodePO) {
        log.info(" 服务 开始熔断");
        return ReturnT.SUCCESS("此处描述熔断后返回的内容");
    }

    @Override
    public ReturnT checkVerifyCode(VerifyCodePO verifyCodePO) {
        log.info(" 服务 开始熔断");
        return ReturnT.SUCCESS("此处描述熔断后返回的内容");
    }
}
